Systems and methods for over-temperature protection and over-voltage protection for power conversion systems

ABSTRACT

Systems and methods are provided for protecting a power conversion system. A system controller includes a first controller terminal and a second controller terminal. The first controller terminal is configured to provide a drive signal to close and open a switch to affect a first current flowing through a primary winding of a power conversion system. The second controller terminal is configured to receive first input signals during one or more first switching periods and receive second input signals during one or more second switching periods. The system controller is configured to determine whether a temperature associated with the power conversion system is larger than a predetermined temperature threshold, and in response to the temperature associated with the power conversion system being larger than the predetermined temperature threshold, generate the drive signal to cause the switch open and remain open to protect the power conversion system.

1. CROSS-REFERENCES TO RELATED APPLICATIONS

This application claims priority to Chinese Patent Application No. 201310450298.1, filed Sep. 26, 2013, commonly assigned, incorporated by reference herein for all purposes.

2. BACKGROUND OF THE INVENTION

The present invention is directed to integrated circuits. More particularly, the invention provides systems and methods for system protections. Merely by way of example, the invention has been applied to over-temperature protection and over-voltage protection of power conversion systems. But it would be recognized that the invention has a much broader range of applicability.

Power conversion systems are often used in many electronic devices to provide power for the electronic devices to operate properly. To protect the electronic devices from being damaged under certain circumstances, many power conversion systems usually include certain protection mechanisms, such as over-temperature protection (OTP) and over-voltage protection (OVP). Oftentimes, a controller chip of a power conversion system uses two different terminals (e.g., pins) for OTP and OVP respectively. In certain controller chips, a terminal is used for OTP, and another terminal for current sensing (e.g., a CS terminal) is used for OVP. But the related OVP detection circuit may disturb the current sensing mechanism. In some controller chips, a single terminal (e.g., a pin) may be selected to perform OTP or selected to perform OVP, but cannot be selected to perform both OTP and OVP.

FIG. 1 is a simplified conventional diagram for over-temperature protection of a power conversion system. The power conversion system 10 includes a controller 12, a primary winding 14, a secondary winding 16, an auxiliary winding 18, a switch 20, resistors 22 and 24, diodes 26 and 28, capacitors 30 and 32, and a feedback component 34. The controller 12 includes terminals (e.g., pins) 36, 38, 40, 42, 44 and 46. For example, the switch 20 includes a field effect transistor. In another example, the switch 20 includes a bipolar junction transistor. In yet another example, the switch 20 includes an insulated-gate bipolar transistor.

As shown in FIG. 1, the resistor 22 is coupled to the terminal 36 (e.g., terminal OTP) for OTP detection. For example, the resistor 22 is a thermal resistor (e.g., a thermistor) that changes its resistance with temperature. As an example, the resistor 22 has a negative temperature coefficient, i.e., the resistance of the resistor 22 decreases with increasing temperatures. When the temperature of the power conversion system 10 is higher than a threshold temperature (e.g., T₀), the resistance of the resistor 22 becomes smaller than a threshold resistance (e.g., R₀), in some embodiments. For example, if a current 48 (e.g., I_(OTP)) flowing through the resistor 22 does not change in magnitude with temperature, a voltage drop across the resistor 22 is determined as follows:

V _(RT) =I _(OTP) ×R ₀  (Equation 1)

If the voltage drop across the resistor 22 is smaller in magnitude than a predetermined reference voltage, it is determined that the temperature of the power conversion system 10 is too high. For example, if the voltage drop across the resistor 22 remains smaller in magnitude than the predetermined reference voltage during a predetermined time period (e.g., N clock cycles), the OTP mechanism is triggered and the controller 12 changes a drive signal 50 to open (e.g., turn off) the switch 20 in order to power off the power conversion system 10. But the controller 12 cannot perform OTP detection and OVP detection using a single terminal (e.g., terminal 36).

The controller 12 includes no additional terminals other than the six terminals (e.g., the six pins) 36, 38, 40, 42, 44, and 46. For example, the terminal 38 (e.g., terminal V_(CC)) is used to receive a supply voltage for the controller 12, and the terminal 44 (e.g., terminal CS) is used to receive a current-sensing signal associated with a primary current flowing through the primary winding 14. In another example, the terminal 42 (e.g., terminal GND) is biased at a ground voltage, and the terminal 40 (e.g., terminal GATE) is used to output the drive signal to open (e.g., turn off) and/or close (e.g., turn on) the switch 20. Alternatively, the controller 12 includes one or more additional terminals (e.g., one or more additional pins) other than the six terminals (e.g., the six pins) 36, 38, 40, 42, 44, and 46.

Hence it is highly desirable to improve the technique for achieving OTP and OVP in power conversion systems.

3. BRIEF SUMMARY OF THE INVENTION

The present invention is directed to integrated circuits. More particularly, the invention provides systems and methods for system protections. Merely by way of example, the invention has been applied to over-temperature protection and over-voltage protection of power conversion systems. But it would be recognized that the invention has a much broader range of applicability.

According to one embodiment, a system controller for protecting a power conversion system includes, a first controller terminal configured to provide a drive signal to close and open a switch to affect a first current flowing through a primary winding of a power conversion system, the drive signal being associated with one or more switching periods including one or more first switching periods and one or more second switching periods, and a second controller terminal configured to receive one or more first input signals during the one or more first switching periods and receive one or more second input signals during the one or more second switching periods. The system controller is configured to, process information associated with the first input signals, determine whether a temperature associated with the power conversion system is larger khan a predetermined temperature threshold based on at least information associated with the first input signals, and in response to the temperature associated with the power conversion system being larger than the predetermined temperature threshold, generate the drive signal to cause the switch open and remain open to protect the power conversion system. The system controller is further configured to, process information associated with the second input signals, determine whether an output voltage associated with a secondary winding of the power conversion system is larger than a predetermined voltage threshold based on at least information associated with the second input signals, and in response to the output voltage associated with the secondary winding of the power conversion system being larger than the predetermined voltage threshold, generate the drive signal to cause the switch to open and remain open to protect the power conversion system.

According to another embodiment, a system for protecting a power conversion system includes, a system controller including a first controller terminal configured to provide a drive signal to close and open a switch to affect a first current flowing through a primary winding of a power conversion system, and a second controller terminal configured to receive one or more input signals, the power conversion system further including a secondary winding and an auxiliary winding, the primary winding coupled to the secondary winding, a first resistor including a first resistor terminal and a second resistor terminal, the first resistor terminal being coupled to the second controller terminal, one or more first diodes including a first diode terminal and a second diode terminal, a first diode terminal being coupled to the second controller terminal, and a second resistor including a third resistor terminal and a fourth resistor terminal, the third resistor terminal being coupled to the second diode terminal. The second resistor terminal is configured to receive an output signal associated with the auxiliary winding coupled to the secondary winding.

According to yet another embodiment, a system controller for protecting a power conversion system includes, a first controller terminal configured to provide a drive signal to close and open a switch to affect a first current flowing through a primary winding of a power conversion system, the drive signal being associated with one or more switching periods including a first switching period and a second switching period; and a protection component configured to receive a first voltage signal associated with a first input current flowing through a resistor during the first switching period and receive a second voltage signal associated with a second input current flowing through the resistor during the second switching period, the first input current and the second input current being different in magnitude. The protection component is further configured to, in response to a difference between the first voltage signal and the second voltage signal being larger than a predetermined threshold in magnitude, output a protection signal to generate the drive signal to cause the switch to open and remain open to protect the power conversion system.

According to yet another embodiment, a system controller for protecting a power conversion system includes, a first controller terminal configured to receive an input current, a first resistor configured to receive a first current and the input current and generate a first voltage based on at least information associated with the first current and the input current, a second resistor configured to receive a second current and generate a second voltage based on at least information associated with the second current, and a processing component configured to, in response to the first voltage becoming larger than a first voltage threshold in magnitude, increase the second voltage in magnitude, discharge a capacitor coupled to the processing component, and decrease a third voltage in magnitude associated with the capacitor.

In one embodiment, a method tier protecting a power conversion system includes, providing a drive signal to close and open a switch to affect a first current flowing through a primary winding of a power conversion system, the drive signal being associated with one or more switching periods including one or more first switching periods and one or more second switching periods, receiving one or more first input signals during the one or more first switching periods, processing information associated with the one or more first input signals, and determining whether a temperature associated with the power conversion system is larger than a predetermined temperature threshold based on at least information associated with the one or more first input signals. The method further includes, in response to the temperature associated with the power conversion system being larger than the predetermined temperature threshold, generating the drive signal to cause the switch open and remain open to protect the power conversion system, receiving one or more second input signals during the one or more second switching periods, processing information associated with the one or more second input signals, determining whether an output voltage associated with a secondary winding of the power conversion system is larger than a predetermined voltage threshold based on at least information associated with the one or more second input signals, and in response to the output voltage associated with the secondary winding of the power conversion system being larger than the predetermined voltage threshold, generating the drive signal to cause the switch to open and remain open to protect the power conversion system.

In another embodiment, a method for protecting a power conversion system includes, providing a drive signal to close and open a switch to affect a first current flowing through a primary winding of a power conversion system, the drive signal being associated with one or more switching periods including a first switching period and a second switching period, receiving a first voltage signal associated with a first input current flowing through a resistor during the first switching period, receiving a second voltage signal associated with a second input current flowing through the resistor during the second switching period, the first input current and the second input current being different in magnitude, and in response to a difference between the first voltage signal and the second voltage signal being larger than a predetermined threshold in magnitude, outputting a protection signal to generate the drive signal to cause the switch to open and remain open to protect the power conversion system.

In yet another embodiment, a method for protecting a power conversion system includes, receiving an input current and a first current, processing information associated with the input current and the first current, and generating a first voltage based on at least information associated with the first current and the input current. The method additionally includes, receiving a second current, processing information associated with the second current, and generating a second voltage based on at least information associated with the second current. The method further includes, in response to the first voltage becoming larger than a first voltage threshold in magnitude, increasing the second voltage in magnitude, discharging a capacitor, and decreasing a third voltage in magnitude associated with the capacitor.

Depending upon embodiment, one or more benefits may be achieved. These benefits and various additional objects, features and advantages of the present invention can be fully appreciated with reference to the detailed description and accompanying drawings that follow.

4. BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a simplified conventional diagram for over-temperature protection of a power conversion system.

FIG. 2 is a simplified diagram for over-temperature protection and over-voltage protection of a power conversion system using one terminal according to one embodiment of the present invention.

FIG. 3 is a simplified diagram for a controller as part of a power conversion system as shown in FIG. 2 according to one embodiment of the present invention.

FIG. 4 is a simplified diagram showing certain components of a power conversion system as shown in FIG. 2 according to one embodiment of the present invention.

FIG. 5 is a simplified timing diagram for a power conversion system as shown in FIG. 2 according to one embodiment of the present invention.

FIG. 6 is a simplified diagram showing certain components of an over-temperature-protection detector as part of a detection component in a controller as shown in FIG. 2 according to one embodiment of the present invention.

FIG. 7 is a simplified diagram showing certain components of an over-voltage-protection detector as part of a detection component in a power conversion system as shown in FIG. 2 according to one embodiment of the present invention.

5. DETAILED DESCRIPTION OF THE INVENTION

The present invention is directed to integrated circuits. More particularly, the invention provides systems and methods for system protections. Merely by way of example, the invention has been applied to over-temperature protection and over-voltage protection of power conversion systems. But it would be recognized that the invention has a much broader range of applicability.

The fabrication cost of a controller chip may increase if different terminals (e.g., pins) are assigned for OTP and OVP respectively. In addition, it is difficult to enclose two separate terminals (e.g., pins) for OTP and OVP in certain chip packaging. But the single terminal may not be used to achieve both OTP and OVP simultaneously.

FIG. 2 is a simplified diagram for over-temperature protection and over-voltage protection of a power conversion system using one terminal according to one embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications.

The power conversion system 100 includes a controller 102, a primary winding 104, a secondary winding 106, an auxiliary winding 108, a switch 110, resistors 112, 114 and 118, diodes 116, 124 and 126, capacitors 122 and 128, and a feedback component 120. The controller 102 includes terminals (e.g., pins) 130, 132, 134, 136, 138 and 140. For example, the switch 110 includes a field effect transistor. In another example, the switch 110 includes a bipolar junction transistor. In yet another example, the switch 110 includes an insulated-gate bipolar transistor. The diode 116 is replaced with a number of diodes connected in series, in some embodiments. As an example, the auxiliary winding 108 is coupled to the secondary winding 106. In another example, the primary winding 104 is coupled to the secondary winding 106.

According to one embodiment, a transformer including the primary winding 104 and the secondary winding 106 is used to isolate an input voltage 196 on the primary side and an output voltage 198 on the secondary side. For example, the feedback component 120 transmits a feedback signal 144 associated with the output voltage 198 from the secondary side to the terminal 136 (e.g., terminal FB) of the controller 102. As an example, the feedback component 120 includes TL431 and an opto-coupler. When the switch 110 is closed (e.g., being turned on), energy is stored in the primary winding 104, and when the switch 110 is opened (e.g., being turned off), the energy stored in the primary winding 110 is released to the secondary side, in some embodiments.

According to another embodiment, the terminal 130 of the controller 102 is used to achieve both over-temperature protection (OTP) and over-voltage protection (OVP). For example, during a first time period (e.g., a switching period), the terminal 130 is configured to receive a first input signal, and whether the OTP mechanism is triggered is determined based on at least information associated with the first input signal. In another example, and during a second time period (e.g., another switching period) that is different from the first time period, the terminal 130 is configured to receive a second input signal, and whether the OVP mechanism is triggered is determined based on at least information associated with the second input signal.

As shown in FIG. 2, the terminal 130 is connected to the resistor 114 and the diode 116 (e.g., the anode) and the resistor 118 (e.g., R_(T)) is connected to the diode 116 (e.g., the cathode), in some embodiments. For example, the resistor 114 is configured to receive a voltage signal 142 from the auxiliary winding 108. As an example, the voltage signal 142 maps the output voltage 198. In another example, the resistor 118 is a thermal resistor (e.g., a thermistor) that changes its resistance with temperature. In yet another example, the resistor 118 has a negative temperature coefficient, i.e., the resistance of the resistor 118 decreases with increasing temperatures.

In certain embodiments, if the temperature of the power conversion system 100 exceeds a temperature threshold, the OTP is triggered, and the controller 102 outputs, at the terminal 134 (e.g., terminal GATE), a drive signal 146 to open (e.g., turn off) the switch 110. For example, the power conversion system 100 is shut down and the switch 110 keeps open. In another example, after being shut down, the system 100 restarts (e.g., automatically or manually) and starts modulation again. In yet another example, the switch 110 keeps open for a first predetermined time period that is larger in duration than a switching period of the system 100.

In some embodiments, if the voltage signal 142 exceeds a voltage threshold, the OVP is triggered, and the controller 102 outputs the drive signal 146 to open (e.g., turn off) the switch 110. For example, the power conversion system 100 is shut down and the switch 110 keeps open. In another example, after being shut down, the system 100 restarts (e.g., automatically or manually) and starts modulation again. In yet another example, the switch 110 keeps open for a second predetermined time period that is larger in duration than a switching period of the system 100.

The controller 102 includes no additional terminals other than the six terminals (e.g., the six pins) 130, 132, 134, 136, 138 and 140 in some embodiments. For example, the terminal 132 (e.g., terminal V_(CC)) is used to receive a supply voltage for the controller 102, and the terminal 138 (e.g., terminal CS) is used to receive a current-sensing signal associated with a primary current flowing through the primary winding 104. In another example, the terminal 140 (e.g., terminal GND) is biased at a ground voltage, and the terminal 134 (e.g., terminal GATE) is used to output the drive signal 146 to open (e.g., turn off) and/or close (e.g., turn on) the switch 110. In certain embodiments, the controller 102 includes one or more additional terminals (e.g., one or more additional pins) other than the six terminals (e.g., the six pins) 130, 132, 134, 136, 138 and 140.

FIG. 3 is a simplified diagram for the controller 102 as part of the power conversion system 100 according to one embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications.

The controller 102 includes a detection component 202, OR gates 206 and 230, an oscillator 212, a logic controller 214, a flip-flop component 216, and a driving component 218. In addition, the controller 102 includes a PK/Green/Burst component 220, a slope-compensation component 222, a leading-edge-blanking (LEB) component 224, comparators 226 and 228, an under-voltage lock-out (UVLO) component 232, a reference-signal generator 234, and resistors 236, 238 and 240. In certain embodiments, the OR gate 206 is included in the logic controller 214.

According to one embodiment, the terminal 130 (e.g., terminal P1) provides one or more input signals to the detection component 202 which generates an OTP-detection signal 208 and an OVP-detection signal 210 to the OR gate 206. For example, the OR gate 206 outputs a signal 242 to the logic controller 214 to affect the status of the switch 110.

Whether the OVP mechanism is triggered is determined based on at least information associated with a current 188 (e.g., I_(OVP)) flowing through the resistor 114, in certain embodiments. For example, if the current 188 becomes larger in magnitude than a threshold current, it is determined that the output voltage of the power conversion system 100 is too high. As an example, if the current 188 keeps larger in magnitude than the threshold current during another predetermined time period (e.g., M clock cycles), the OVP mechanism is triggered and the controller 102 changes the drive signal 146 to open (e.g., turn off) the switch 110 in order to power off the power conversion system 100. In some embodiments, the diode 116 serves to reduce a leakage current flowing from the resistor 118 toward the terminal 130 (e.g., terminal P1) during the OVP detection. In addition, a voltage 184 (e.g., V₁) associated with the terminal 130 (e.g., terminal P1) is kept approximately smaller in magnitude than a turn-on voltage (e.g., a forward voltage) of the diode 116.

FIG. 4 is a simplified diagram showing certain components of the power conversion system 100 according to one embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. As shown in FIG. 4, the detection component 202 includes current-source components 302 and 304, switches 306, 308, 310, 312 and 314, an OTP detector 316, and an OVP detector 318.

According to one embodiment, the switches 306 and 312 are closed or opened in response to a switching signal 320 (e.g., S₀), and the switches 308 and 310 are closed or opened in response to a switching signal 322 (e.g., S₁). For example, the switch 324 is closed or opened in response to a switching signal 324 (e.g., S_(ovp)). The OVP detection and the OTP detection are performed during different switching periods by controlling the switches 306, 308, 310, 312 and 314 in some embodiments.

FIG. 5 is a simplified timing diagram for the power conversion system 100 according to one embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. The waveform 402 represents the drive signal 146 as a function of time, the waveform 404 represents the switching signal 324 (e.g., S_(ovp)) as a function of time, the waveform 406 represents the switching signal 320 (e.g., S₀) as a function of time, and the waveform 408 represents the switching signal 322 (e.g., S₁) as a function of time. The OVP detection and the OTP detection are performed alternately during different switching periods in certain embodiments.

Three switching periods are shown in FIG. 5, T₁, T₂, and T₃. The switching period T₁ starts at time t₀ and ends at time t₂, the switching period T₂ starts at the time t₂ and ends at time t₄, and the switching period T₃ starts at the time t₄ and ends at time t₆. In addition, within the first switching period T₁, a time period T_(S0) starts at the time t₀ and ends at time t₁. A time period T_(OVP) within the second switching period T₂ starts at the time t₂ and ends at time t₃. Further, a time period T_(S1) within the third switching period T₃ starts at the time t₄ and ends at time t₅. For example, t₀≤t₁≤t₃≤t₄≤t₅≤t₆. As shown in FIG. 5, the OTP detection is performed during the switching period T₁ and T₃, and the OVP detection is performed during the switching period T₂.

As shown in FIG. 4 and FIG. 5, at the beginning of the switching period T₁ (e.g., at t₀), the drive signal 146 changes from a logic high level to a logic low level, and the switch 110 is opened (e.g., being turned oft), according to one embodiment. For example, the switching signal 320 (e.g., S₀) changes from the logic low level to the logic high level and keeps at the logic high level during the time period T_(S0) (e.g., until t₁), and the switches 306 and 312 are closed (e.g., being turned on). As an example, the current-source component 302 provides a current 330 (e.g., I_(OTP0)) for OTP detection.

According to another embodiment, at the beginning of the switching period T₂ (e.g., at t₂), the drive signal 146 changes from the logic high level to the logic low level, and the switch 110 is opened (e.g., being turned off). As an example, the voltage signal 142 is related to the output voltage 198 when the drive signal 146 is at the logic low level. For example, the switching signal 324 (e.g., S_(ovp)) changes from the logic low level to the logic high level and keeps at the logic high level during the time period T_(OVP) (e.g., until t₃), and the switch 314 is closed (e.g., being turned on). In another example, the current 188 flows through the resistor 114 and the terminal 130 (e.g., terminal P1), and is received by the OVP detector 318 for OVP detection.

According to yet another embodiment, at the beginning of the switching period T₃ (e.g., at t₄), the drive signal 146 changes from the logic high level to the logic low level, and the switch 110 is opened (e.g., being turned off). For example, the switching signal 322 (e.g., S₁) changes from the logic low level to the logic high level and keeps at the logic high level during the time period T_(S1) (e.g., until t₅), and the switches 308 and 310 are closed (e.g., being turned on). As an example, the current-source component 304 provides a current 328 (e.g., I_(OTP1)) for OTP detection.

In one embodiment, the OTP detection is achieved based on at least information associated with the voltage signal 184. For example, the current 188 (e.g., I_(OVP)) is determined as follows:

$\begin{matrix} {I_{OVP} = \frac{V_{o} - V_{1}}{R_{OVP}}} & \left( {{Equation}\mspace{14mu} 2} \right) \end{matrix}$

where V_(o) represents the voltage signal 142, V₁ represents the voltage signal 184, and R_(OVP) represents the resistance of the resistor 118. As an example, the voltage signal 184 is determined as follows:

V ₁ =V _(D)+(I _(OVP) +I _(OTP))×R _(T)  (Equation 3)

where V_(D) represents a turn-on voltage (e.g., a forward voltage) of the diode 116, I_(OTP) represents the current 186, and R_(T) represents the resistance of the resistor 118.

Combining Equation 2 and Equation 3, the voltage signal 184 is determined as follows:

$\begin{matrix} {V_{1} = {{\frac{R_{OVP}}{R_{OVP} + R_{T}} \times V_{D}} + {\frac{R_{T}}{R_{OVP} + R_{T}} \times V_{o}} + {\frac{R_{T} \times R_{OVP}}{R_{OVP} + R_{T}} \times I_{OTP}}}} & \left( {{Equation}\mspace{14mu} 4} \right) \end{matrix}$

Assuming the turn-on voltage (e.g., a forward voltage) of the diode 116 does not change with the current 186, a change of the voltage signal 184 between different time periods for OTP detection is determined as follows, according to certain embodiments:

$\begin{matrix} {{\Delta \; V_{1}} = {{{V_{1}\left( S_{0} \right)} - {V_{1}\left( S_{1} \right)}} = {\frac{R_{T} \times R_{OVP}}{R_{OVP} + R_{T}} \times \Delta \; I_{OTP}}}} & \left( {{Equation}\mspace{14mu} 5} \right) \end{matrix}$

where V₁(S₀) represents a magnitude of the voltage signal 184 during the time period T_(S0), V₁(S₁) represents a magnitude of the voltage signal 184 during the time period T_(S1), and ΔI_(OTP) represents a change of the current 186 between the time periods T_(S0) and T_(S1). For example, the change of the current 186 between the time periods T_(S0) and T_(S1) is determined as follows:

ΔI _(OTP) =I _(OTP0) −I _(OTP1)  (Equation 6)

where I_(OTP0) represents the current 330, and I_(OTP1) represents the current 328.

As discussed above and further emphasized here, FIG. 4 and FIG. 5 are merely examples, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. For example, the time period T_(OVP) precedes both the time period T_(S0) and the time period T_(S1). In another example, the time period T_(OVP) follows both the time period T_(S0) and the time period T_(S1). In yet another example, the switching period T₃ that includes the time period T_(S1) immediately follows the switching period T₁ that includes the time period T_(S0). In yet another example, the switching period T₁ that includes the time period T_(S0) follows immediately the switching period T₃ that includes the time period T_(S1). In yet another example, the switching period T₃ that includes the time period T_(S1) is separated from the switching period T₁ that includes the time period T_(S0) by one or more switching periods. In yet another example, the switching period T₂ that includes the time period T_(OVP) immediately follows the switching period T₃ that includes the time period T_(S1). In yet another example, the switching period T₂ that includes the time period T_(OVP) is separated from the switching period T₁ that includes the time period T_(S0) by one or more switching periods. In yet another example, the switching period T₂ that includes the time period T_(OVP) is separated from the switching period T₃ that includes the time period T_(S1) by one or more switching periods.

FIG. 6 is a simplified diagram showing certain components of the OTP detector 316 as part of the detection component 202 in the controller 102 according to one embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. As shown in FIG. 6, the OTP detector 316 includes switches 502 and 508, capacitors 504 and 506, a comparator 510, an amplifier 512, and a counter component 514. For example, the switches 502 and 508 are closed or opened in response to the switching signal 320 (e.g., S₀).

According to one embodiment, during the first time period (e.g., the time period T_(S0)), when the switch 312 is closed, the capacitor 506 is charged in response to the voltage signal 184 until a voltage 516 received at an inverting terminal (e.g., the “−” terminal) of the comparator 510 is approximately equal in magnitude to the voltage signal 184. For example, the voltage signal 184 is sampled at the capacitor 506. In another example, the amplifier 512 receives a reference signal 518 (e.g., V_(REF)) at a non-inverting terminal (e.g., the “±” terminal). In yet another example, the switches 502 and 508 are closed (e.g., being turned on) in response to the switching signal 320, and the switch 310 is opened (e.g., being turned off) in response to the switching signal 322. As an example, the capacitor 504 is charged until a voltage 520 received at a non-inverting terminal (e.g., the “+” terminal) of the comparator 510 is approximately equal in magnitude to the reference signal 518.

According to another embodiment, during a second time period (e.g., the time period T_(S1)), when the switch 310 is closed, the switches 312, 502 and 508 are opened (e.g., being turned off) in response to the switching signal 320. For example, a voltage 522 at a terminal of the capacitor 504 is approximately equal in magnitude to the voltage signal 184. In another example, the other terminal of the capacitor 504 is floating, and the voltage 520 at the non-inverting terminal of the comparator 510 is determined as follows:

V _(A) =V _(REF) +V ₁(S ₁)  (Equation 7)

where V_(REF) represents the reference signal 518, and V₁(S₁) represents the voltage signal 184 during the second time period. In yet another example, the voltage 516 at the inverting terminal of the comparator 510 is kept at approximately the voltage signal 184 during the first time period.

According to yet another embodiment, when the voltage 520 is larger in magnitude than the voltage 516 as follows:

V ₁(S ₀)−V ₁(S ₁)<V _(REF)  (Equation 8)

where V₁(S₀) represents the voltage signal 184 during the first time period, and V₁(S₁) represents the voltage signal 184 during the second time period, it indicates that the temperature of the power conversion system 100 is higher than a temperature threshold. For example, the comparator 510 generates a signal 524 at a logic high level. In another example, if the signal 524 is kept at the logic high level for a predetermined time period (e.g., a predetermined number of clock cycles), the counter component 514 outputs the OTP-detection signal 208 (e.g., at the logic high level) to trigger the OTP protection.

Combining Equation 5 and Equation 8, the condition for OTP protection is determined as follows, according to some embodiments:

$\begin{matrix} {{\frac{R_{T} \times R_{OVP}}{R_{OVP} + R_{T}} \times \Delta \; I_{OTP}} < V_{REF}} & \left( {{Equation}\mspace{14mu} 9} \right) \end{matrix}$

where ΔI_(OTP) represents a change of the current 186 between the first time period (e.g., the time period T_(S0)) and the second time period (e.g., the time period T_(S1)). For example, when the temperature of the power conversion system 100 is higher than the temperature threshold, the resistance of the resistor 114 (i.e., R_(OVP)) is much larger than the resistance of the resistor 118 (i.e., R_(T)). The condition for OTP protection is determined as follows, according to certain embodiments:

R _(T) ×ΔI _(OTP) <V _(REF)  (Equation 10)

FIG. 7 is a simplified diagram showing certain components of the OVP detector 318 as part of the detection component 202 in the power conversion system 100 according to one embodiment of the present invention. This diagram is merely an example, which should not unduly limit the scope of the claims. One of ordinary skill in the art would recognize many variations, alternatives, and modifications. As shown in FIG. 7, the OVP detector 318 includes current sources 602, 608 and 618, transistors 604, 610 and 616, resistors 606 and 612, a capacitor 614, a Schmitt trigger component 620, and a counter component 622. For example, the resistance of the resistor 612 is equal to the resistance of the resistor 606 times a predetermined parameter K (e.g., K>1, or K≤1).

According to one embodiment, the current source 602 is configured to provide a current 624 (e.g., I₁) to flow through the resistor 606, and the current source 608 is configured to provide another current 626 (e.g., I₂). For example, the current 624 and the current 626 are equal in magnitude to a reference current (e.g., I_(ref)). In another example, the current 624 and the current 626 are not equal in magnitude.

According to another embodiment, when the switch 314 is closed during a first time period (e.g., the time period T_(OVP)), the terminal 130 is configured to provide the current 188 to flow through the resistor 606. For example, under certain circumstances, the voltage signal 184 is equal in magnitude to a voltage 630 (e.g., V_(R1)) associated with the resistor 606 and/or a voltage 632 (e.g., V_(R2)) associated with the resistor 612, as follows:

V ₁ =V _(R1)=(I ₁ +I _(OVP))×R ₁=(I _(ref) +I _(OVP))×R ₁

V ₁ =V _(R2) =I ₂ ×R ₂ =I _(ref) ×K×R ₁  (Equation 11)

where V_(R1) represents the voltage signal 630, I₁ represents the current 624, I_(OVP) represents the current 188, and R₁ represents the resistance of the resistor 606. In addition, V_(R2) represents the voltage signal 632, I₂ represents the current 626, R₂ represents the resistance of the resistor 612, and I_(ref) represents the reference current.

In another example, the voltage 630 (e.g., V_(R1)) is equal to the voltage 632 (e.g., V_(R2)) in magnitude. In one embodiment, if the voltage signal 142 increases in magnitude, the current 188 increases in magnitude, and the voltage signal 630 (e.g., V_(R1)) increases in magnitude. In another embodiment, if the voltage signal 142 increases in magnitude, the voltage 632 (e.g., V_(R2)) also increases in magnitude, and the current 628 increases in magnitude. As an example, if the voltage signal 630 (e.g., V_(R1)) exceeds a first voltage threshold, the current 628 becomes larger in magnitude than the current 626 provided by the current source 608. The capacitor 614 begins to discharge to provide a current 636 flowing through the transistor 610 and the resistor 612, according to certain embodiments. For example, the voltage 634 (e.g., V_(F)) decreases in magnitude. As an example, if the voltage 634 (e.g., V_(F)) becomes smaller than a second voltage threshold, the transistor 616 is turned off, in certain embodiments. In another example, an input signal 640 that is associated with the transistor 616 and a bias current 644 provided by the current source 618 increases in magnitude. In yet another example, the resistor R1 is chosen so that the voltage signal 630 (e.g., V_(R1)) is smaller in magnitude than a forward voltage of the diode 116.

V _(R1)=(I ₁ +I _(OVP))×R ₁ <V _(f)  (Equation 12)

where V_(f) represents the forward voltage of the diode 116.

According to yet another embodiment, the Schmitt trigger component 620 is configured to receive the input signal 640 and generate a signal 642. For example, if the input signal 640 is smaller in magnitude than a first predetermined threshold, the Schmitt trigger component 620 is configured to output the signal 642 at a logic low level. On the other hand, if the input signal 640 becomes higher in magnitude than a second predetermined threshold as the voltage 634 (e.g., V_(F)) decreases in magnitude, the Schmitt trigger component 620 is configured to output the signal 642 at a logic high level. In another example, if the signal 642 is kept at the logic high level for a predetermined time period (e.g., a predetermined number of clock cycles), the counter component 622 outputs the OVP-detection signal 210 (e.g., at the logic high level) to trigger the OVP protection. Combining Equation 2 and Equation 11, the condition for OVP detection is determined as follows, according to certain embodiments:

V _(o)=(K−1)×I _(ref) ×R _(OVP) +I _(ref) ×K×R ₁  (Equation 13)

where V_(o) represents the voltage signal 142 associated with the auxiliary winding 108. For example, the voltage signal 142 is related to the output voltage 198 as below.

$\begin{matrix} {V_{o} = {\frac{N_{aux}}{N_{\sec}} \times V_{out}}} & \left( {{Equation}\mspace{14mu} 14} \right) \end{matrix}$

where V_(out) represents the output voltage 198, and N_(aux)/N_(sec) represents a turns ratio between the auxiliary winding 108 and the secondary winding 106.

According to one embodiment, a system controller for protecting a power conversion system includes, a first controller terminal configured to provide a drive signal to close and open a switch to affect a first current flowing through a primary winding of a power conversion system, the drive signal being associated with one or more switching periods including one or more first switching periods and one or more second switching periods, and a second controller terminal configured to receive one or more first input signals during the one or more first switching periods and receive one or more second input signals during the one or more second switching periods. The system controller is configured to, process information associated with the first input signals, determine whether a temperature associated with the power conversion system is larger than a predetermined temperature threshold based on at least information associated with the first input signals, and in response to the temperature associated with the power conversion system being larger than the predetermined temperature threshold, generate the drive signal to cause the switch open and remain open to protect the power conversion system. The system controller is further configured to, process information associated with the second input signals, determine whether an output voltage associated with a secondary winding of the power conversion system is larger than a predetermined voltage threshold based on at least information associated with the second input signals, and in response to the output voltage associated with the secondary winding of the power conversion system being larger than the predetermined voltage threshold, generate the drive signal to cause the switch to open and remain open to protect the power conversion system. For example, the system controller is implemented according to FIG. 2, FIG. 3, FIG. 4, FIG. 5, FIG. 6, and/or FIG. 7.

According to another embodiment, a system for protecting a power conversion system includes, a system controller including a first controller terminal configured to provide a drive signal to close and open a switch to affect a first current flowing through a primary winding of a power conversion system, and a second controller terminal configured to receive one or more input signals, the power conversion system further including a secondary winding and an auxiliary winding, the primary winding coupled to the secondary winding, a first resistor including a first resistor terminal and a second resistor terminal, the first resistor terminal being coupled to the second controller terminal, one or more first diodes including a first diode terminal and a second diode terminal, a first diode terminal being coupled to the second controller terminal, and a second resistor including a third resistor terminal and a fourth resistor terminal, the third resistor terminal being coupled to the second diode terminal. The second resistor terminal is configured to receive an output signal associated with the auxiliary winding coupled to the secondary winding. For example, the system is implemented according to at least FIG. 2, FIG. 4, and/or FIG. 7.

According to yet another embodiment, a system controller for protecting a power conversion system includes, a first controller terminal configured to provide a drive signal to close and open a switch to affect a first current flowing through a primary winding of a power conversion system, the drive signal being associated with one or more switching periods including a first switching period and a second switching period; and a protection component configured to receive a first voltage signal associated with a first input current flowing through a resistor during the first switching period and receive a second voltage signal associated with a second input current flowing through the resistor during the second switching period, the first input current and the second input current being different in magnitude. The protection component is further configured to, in response to a difference between the first voltage signal and the second voltage signal being larger than a predetermined threshold in magnitude, output a protection signal to generate the drive signal to cause the switch to open and remain open to protect the power conversion system. For example, the system controller is implemented according to at least FIG. 4, FIG. 5, and/or FIG. 6.

According to yet another embodiment, a system controller for protecting a power conversion system includes, a first controller terminal configured to receive an input current, a first resistor configured to receive a first current and the input current and generate a first voltage based on at least information associated with the first current and the input current, a second resistor configured to receive a second current and generate a second voltage based on at least information associated with the second current, and a processing component configured to, in response to the first voltage becoming larger than a first voltage threshold in magnitude, increase the second voltage in magnitude, discharge a capacitor coupled to the processing component, and decrease a third voltage in magnitude associated with the capacitor. For example, the system controller is implemented according to at least FIG. 7.

In one embodiment, a method for protecting a power conversion system includes, providing a drive signal to close and open a switch to affect a first current flowing through a primary winding of a power conversion system, the drive signal being associated with one or more switching periods including one or more first switching periods and one or more second switching periods, receiving one or more first input signals during the one or more first switching periods, processing information associated with the one or more first input signals, and determining whether a temperature associated with the power conversion system is larger than a predetermined temperature threshold based on at least information associated with the one or more first input signals. The method further includes, in response to the temperature associated with the power conversion system being larger than the predetermined temperature threshold, generating the drive signal to cause the switch open and remain open to protect the power conversion system, receiving one or more second input signals during the one or more second switching periods, processing information associated with the one or more second input signals, determining whether an output voltage associated with a secondary winding of the power conversion system is larger than a predetermined voltage threshold based on at least information associated with the one or more second input signals, and in response to the output voltage associated with the secondary winding of the power conversion system being larger than the predetermined voltage threshold, generating the drive signal to cause the switch to open and remain open to protect the power conversion system. For example, the method is implemented according to FIG. 2, FIG. 3, FIG. 4, FIG. 5, FIG. 6, and/or FIG. 7.

In another embodiment, a method for protecting a power conversion system includes, providing a drive signal to close and open a switch to affect a first current flowing through a primary winding of a power conversion system, the drive signal being associated with one or more switching periods including a first switching period and a second switching period, receiving a first voltage signal associated with a first input current flowing through a resistor during the first switching period, receiving a second voltage signal associated with a second input current flowing through the resistor during the second switching period, the first input current and the second input current being different in magnitude, and in response to a difference between the first voltage signal and the second voltage signal being larger than a predetermined threshold in magnitude, outputting a protection signal to generate the drive signal to cause the switch to open and remain open to protect the power conversion system. For example, the method is implemented according to at least FIG. 4, FIG. 5, and/or FIG. 6.

In yet another embodiment, a method for protecting a power conversion system includes, receiving an input current and a first current, processing information associated with the input current and the first current, and generating a first voltage based on at least information associated with the first current and the input current. The method additionally includes, receiving a second current, processing information associated with the second current, and generating a second voltage based on at least information associated with the second current. The method further includes, in response to the first voltage becoming larger than a first voltage threshold in magnitude, increasing the second voltage in magnitude, discharging a capacitor, and decreasing a third voltage in magnitude associated with the capacitor. For example, the method is implemented according to at least FIG. 7.

For example, some or all components of various embodiments of the present invention each are, individually and/or in combination with at least another component, implemented using one or more software components, one or more hardware components, and/or one or more combinations of software and hardware components. In another example, some or all components of various embodiments of the present invention each are, individually and/or in combination with at least another component, implemented in one or more circuits, such as one or more analog circuits and/or one or more digital circuits. In yet another example, various embodiments and/or examples of the present invention can be combined.

Although specific embodiments of the present invention have been described, it will be understood by those of skill in the art that there are other embodiments that are equivalent to the described embodiments. Accordingly, it is to be understood that the invention is not to be limited by the specific illustrated embodiments, but only by the scope of the appended claims. 

1.-45. (canceled)
 46. A system controller for protecting a power converter, the system controller comprising: a first controller terminal configured to receive a first input signal during a first switching period, receive a second input signal during a second switching period, and receive a third input signal during a third switching period; wherein: the first switching period precedes the second switching period; and the second switching period precedes the third switching period; wherein the system controller is configured to: in response to a temperature associated with a power converter being larger than a predetermined temperature threshold, generate a drive signal for a switch to open and remain open to protect the power converter; wherein the system controller is further configured to: in response to an output voltage associated with a secondary winding of the power converter being larger than a predetermined voltage threshold, generate the drive signal for the switch to open and remain open to protect the power converter; wherein the first controller terminal is further configured to: receive the first input signal during only a first part of the first switching period; receive the second input signal during only a second part of the second switching period; and receive the third input signal during only a third part of the third switching period; wherein: the first part is smaller in magnitude than the first switching period, the first part starting at a first start time of the first switching period and ending before a first end time of the first switching period; the second part is smaller in magnitude than the second switching period, the second part starting at a second start time of the second switching period and ending before a second end time of the second switching period; and the third part is smaller in magnitude than the third switching period, the third part starting at a third start time of the third switching period and ending before a third end time of the third switching period.
 47. The system controller of claim 46 is further configured to, in response to the output voltage associated with the secondary winding of the power converter being larger than the predetermined voltage threshold to, generate the drive signal to cause the switch to be opened without any modulation.
 48. The system controller of claim 46 is further configured to, in response to the output voltage associated with the secondary winding of the power converter being larger than the predetermined voltage threshold to, generate the drive signal to cause the switch to remain open for a first period of time larger in duration than the second switching period.
 49. The system controller of claim 46 wherein: the first controller terminal is coupled to a first resistor terminal of a first resistor, the first resistor further including a second resistor terminal; the first controller terminal is coupled to a first diode terminal of one or more first diodes, the one or more first diodes further including a second diode terminal; the second diode terminal is coupled to a third resistor terminal of a second resistor, the second resistor further including a fourth resistor terminal; and the second resistor terminal is configured to receive an output signal associated with an auxiliary winding coupled to the secondary winding.
 50. The system controller of claim 49 wherein the second resistor is a thermal resistor associated with a resistance changing with temperature.
 51. The system controller of claim 50 wherein the resistance decreases with increasing temperature.
 52. The system controller of claim 49 wherein: the first diode terminal is an anode terminal; and the second diode terminal is a cathode terminal.
 53. The system controller of claim 46, further comprising: a second controller terminal configured to receive a supply voltage; a third controller terminal configured to receive a bias voltage; a fourth controller terminal configured to receive a first signal related to a current flowing through a primary winding; and a fifth controller terminal configured to receive a feedback signal related to the output voltage.
 54. The system controller of claim 53 wherein the first controller terminal, the second controller terminal, the third controller terminal, the fourth controller terminal, and the fifth controller terminal are five different pins respectively.
 55. A system for protecting a power converter, the system comprising: a system controller including a first controller terminal configured to receive one or more input signals of a power converter; a first resistor including a first resistor terminal and a second resistor terminal, the first resistor terminal being directly coupled to the first controller terminal; one or more first diodes including a first diode terminal and a second diode terminal, the first diode terminal being coupled to the first controller terminal; and a second resistor including a third resistor terminal and a fourth resistor terminal, the third resistor terminal being coupled to the second diode terminal; wherein the second resistor terminal is directly coupled to an auxiliary winding and is configured to receive an output signal associated with the auxiliary winding coupled to a secondary winding.
 56. The system of claim 55 wherein the second resistor is a thermal resistor associated with a resistance changing with temperature.
 57. The system of claim 56 wherein the resistance decreases with increasing temperature.
 58. The system of claim 55 wherein: the first diode terminal is an anode terminal; and the second diode terminal is a cathode terminal.
 59. The system of claim 55 wherein the system controller further includes: a second controller terminal configured to receive a supply voltage; a third controller terminal configured to receive a bias voltage; a fourth controller terminal configured to receive a first signal related to a current flowing through a primary winding; and a fifth controller terminal configured to receive a feedback signal related to the output signal associated with the secondary winding.
 60. The system of claim 59 wherein the first controller terminal, the second controller terminal, the third controller terminal, the fourth controller terminal, and the fifth controller terminal are five different pins respectively.
 61. A system controller for protecting a power converter, the system controller comprising: a protection signal generator configured to receive a first voltage signal associated with a first input current flowing through a resistor during a first switching period and receive a second voltage signal associated with a second input current flowing through the resistor during a second switching period; wherein the protection signal generator is further configured to, in response to the first voltage signal minus the second voltage signal being smaller than a predetermined threshold in magnitude, generate a protection signal for a switch of a power converter to open and remain open; wherein the first switching period precedes the second switching period; wherein: the first input current is not equal to zero in magnitude; and the second input current is not equal to zero in magnitude; wherein the first voltage signal minus the second voltage signal is proportional to the first input current minus the second input current.
 62. The system controller of claim 61 wherein the protection signal generator is further configured to receive the first voltage signal during only a first part of the first switching period.
 63. The system controller of claim 61 wherein the protection signal generator is further configured to receive the second voltage signal during only a second part of the second switching period.
 64. The system controller of claim 61 wherein the protection signal generator is further configured to, in response to the first voltage signal minus the second voltage signal being smaller than the predetermined threshold in magnitude, generate the protection signal for the switch to be opened without any modulation.
 65. The system controller of claim 61 wherein the protection signal generator is further configured to, in response to the first voltage signal minus the second voltage signal being smaller than the predetermined threshold in magnitude, generate the protection signal for the switch to remain open for a period of time larger in duration than the first switching period.
 66. The system controller of claim 61 wherein the second switching period is separated from the first switching period by one or more third switching periods.
 67. The system controller of claim 61 wherein the second switching period immediately follows the first switching period.
 68. The system controller of claim 61 wherein the protection signal generator includes: a first current source configured to provide the first input current; and a second current source configured to provide the second input current.
 69. The system controller of claim 61 wherein the predetermined threshold is larger in magnitude than zero.
 70. A system controller for protecting a power converter, the system controller comprising: a first resistor configured to generate a first voltage based at least in part on a first current and a second current; a second resistor configured to generate a second voltage based at least in part on a third current; a first detector configured to, in response to the first voltage becoming larger than a first voltage threshold in magnitude, increase the second voltage in magnitude, discharge a capacitor coupled to the first detector, and decrease a third voltage in magnitude associated with the capacitor; a controller terminal configured to provide a drive signal for a switch of a power converter; and a second detector configured to detect the third voltage, and in response to the third voltage being smaller in magnitude than a second voltage threshold, output a protection signal for the switch to open and remain open to protect the power converter.
 71. The system controller of claim 70 wherein the first detector includes: a first current source configured to provide a fourth current; a second current source configured to provide a fifth current; a first transistor including a first transistor terminal, a second transistor terminal, and a third transistor terminal, the first transistor terminal being coupled to the second transistor terminal; and a second transistor including a fourth transistor terminal, a fifth transistor terminal, and a sixth transistor terminal, the fifth transistor terminal being coupled to the second transistor terminal; wherein: the first transistor terminal is configured to receive the fourth current from the first current source; the third transistor terminal is configured to output the first current; the fourth transistor terminal is configured to receive the fifth current from the second current source; and the sixth transistor terminal is configured to output the third current.
 72. The system controller of claim 71 wherein the second detector includes: a third current source configured to provide a sixth current; a third transistor including a seventh transistor terminal, an eighth transistor terminal, and a ninth transistor terminal, the seventh transistor terminal being configured to receive the sixth current, the eighth transistor terminal being coupled to the capacitor and configured to receive the third voltage; and a signal generator configured to receive an output signal from the seventh transistor terminal and output the protection signal.
 73. The system controller of claim 70 wherein the first voltage is equal in magnitude to the second voltage.
 74. A method for protecting a power converter, the method comprising: receiving a first input signal during a first switching period, receiving a second input signal during a second switching period, and receiving a third input signal during a third switching period; wherein: the first switching period precedes the second switching period; and the second switching period precedes the third switching period; in response to a temperature associated with a power converter being larger than a predetermined temperature threshold, generating a drive signal for a switch to open and remain open to protect the power converter; and in response to an output voltage associated with a secondary winding of the power converter being larger than a predetermined voltage threshold, generating the drive signal for the switch to open and remain open to protect the power converter; wherein: the receiving a first input signal during the first switching period includes receiving the first input signal during only a first part of the first switching period; the receiving a second input signal during the second switching period includes receiving the second input signal during only a second part of the second switching period; and the receiving a third input signal during the third switching period includes receiving the third input signal during only a third part of the third switching period; wherein: the first part is smaller in magnitude than the first switching period, the first part starting at a first start time of the first switching period and ending before a first end time of the first switching period; the second part is smaller in magnitude than the second switching period, the second part starting at a second start time of the second switching period and ending before a second end time of the second switching period; and the third part is smaller in magnitude than the third switching period, the third part starting at a third start time of the third switching period and ending before a third end time of the third switching period.
 75. A method for protecting a power converter, the method comprising: receiving a first voltage signal associated with a first input current flowing through a resistor during a first switching period; receiving a second voltage signal associated with a second input current flowing through the resistor during a second switching period; and in response to the first voltage signal minus the second voltage signal being smaller than a predetermined threshold in magnitude, generating a protection signal for a switch to open and remain open; wherein the first switching period precedes the second switching period; wherein: the first input current is not equal to zero in magnitude; and the second input current is not equal to zero in magnitude; wherein the first voltage signal minus the second voltage signal is proportional to the first input current minus the second input current.
 76. A method for protecting a power converter, the method comprising: generating at a first resistor a first voltage based at least in part on a first current and a second current; generating at a second resistor a second voltage based at least in part on a third current; and in response to the first voltage becoming larger than a first voltage threshold in magnitude, increasing the second voltage in magnitude; discharging a capacitor, and decreasing a third voltage in magnitude associated with the capacitor; providing a drive signal for a switch of a power converter; detecting the third voltage; and in response to the third voltage being smaller in magnitude than a second voltage threshold, outputting a protection signal for the switch to open and remain open to protect the power converter. 